/*
 * @Author: yrn
 * @Date: 2020-08-10 08:14:21
 * @LastEditTime: 2020-08-10 10:35:56
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \网易云PC端项目\music\music\src\api\modules\yrnApi.js
 */
import axios from "axios";

export default {
  getFirstDish: (params) => {
    // 获取热门新碟
    return axios.get('/album/newest', params);
  },
  getAllDish: (area,page) => {
    // 获取全部新碟
    return axios.get(`/album/new?area=${area}&limit=35&offset=${(page-1)*35}`)
  },
  getALLSongList: (page) => {
    // 获取歌单
    return axios.get(`/top/playlist?limit=35&order=hot&offset=${(page-1)*35}`)
  },
  getSongListTag: (params) => {
    // 获取歌单分类
    return axios.get('/playlist/catlist',params)
  },
  getSonginfo: (id) => {
    return axios.get(`/album?id=${id}`);
  },
  getSongNew: (id) => {
    return axios.get(`/album/detail/dynamic?id=${id}`);
  }
};
